package com.yjc.springcloud.alibaba.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.yjc.springcloud.bean.CommotResult;

/**
 * @author shkstart
 * @create 2022-08-16 10:24
 */
public class CustomerBlockHandler {

    public static CommotResult blockHandler1(BlockException blockException) {
        return new CommotResult(4441, blockException.getClass().getCanonicalName() + "\t 服务不可用--->blockHandler1");
    }
    public static CommotResult blockHandler2(BlockException blockException) {
        return new CommotResult(4442, blockException.getClass().getCanonicalName() + "\t 服务不可用--->blockHandler2");
    }
}
